﻿namespace WMS6.Web.CrossdockServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, GeneratedCode("System.Runtime.Serialization", "3.0.0.0"), DebuggerStepThrough, DataContract(Name="XordersInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity")]
    public class XordersInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private string ApportionField;
        [OptionalField]
        private string ConsigneeIDField;
        [OptionalField]
        private string CreatedByField;
        [OptionalField]
        private DateTime CreatedDateField;
        [OptionalField]
        private DateTime DeliveryDateField;
        [OptionalField]
        private string DoorField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private string ExternalLoadIDField;
        [OptionalField]
        private string ExternOrderIDField;
        [OptionalField]
        private string IsActiveField;
        [OptionalField]
        private string LoadIDField;
        [OptionalField]
        private string OhTypeField;
        [OptionalField]
        private string OrderIDField;
        [OptionalField]
        private string OrderTypeField;
        [OptionalField]
        private string OwnerIDField;
        [OptionalField]
        private string PoIDField;
        [OptionalField]
        private string RouteField;
        [OptionalField]
        private int RowIDField;
        [OptionalField]
        private string StatusField;
        [OptionalField]
        private string StopField;
        [OptionalField]
        private byte[] TsField;
        [OptionalField]
        private string UpdatedByField;
        [OptionalField]
        private DateTime UpdatedDateField;
        [OptionalField]
        private string VehicleCarrierField;
        [OptionalField]
        private string WhIDField;
        [OptionalField]
        private List<XorderDetailInfo> XOrderDetailInfosField;
        [OptionalField]
        private List<XpickDetailInfo> XpickDetailInfosField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public string Apportion
        {
            get
            {
                return this.ApportionField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ApportionField, value))
                {
                    this.ApportionField = value;
                    this.RaisePropertyChanged("Apportion");
                }
            }
        }

        [DataMember]
        public string ConsigneeID
        {
            get
            {
                return this.ConsigneeIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ConsigneeIDField, value))
                {
                    this.ConsigneeIDField = value;
                    this.RaisePropertyChanged("ConsigneeID");
                }
            }
        }

        [DataMember]
        public string CreatedBy
        {
            get
            {
                return this.CreatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedByField, value))
                {
                    this.CreatedByField = value;
                    this.RaisePropertyChanged("CreatedBy");
                }
            }
        }

        [DataMember]
        public DateTime CreatedDate
        {
            get
            {
                return this.CreatedDateField;
            }
            set
            {
                if (!this.CreatedDateField.Equals(value))
                {
                    this.CreatedDateField = value;
                    this.RaisePropertyChanged("CreatedDate");
                }
            }
        }

        [DataMember]
        public DateTime DeliveryDate
        {
            get
            {
                return this.DeliveryDateField;
            }
            set
            {
                if (!this.DeliveryDateField.Equals(value))
                {
                    this.DeliveryDateField = value;
                    this.RaisePropertyChanged("DeliveryDate");
                }
            }
        }

        [DataMember]
        public string Door
        {
            get
            {
                return this.DoorField;
            }
            set
            {
                if (!object.ReferenceEquals(this.DoorField, value))
                {
                    this.DoorField = value;
                    this.RaisePropertyChanged("Door");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public string ExternalLoadID
        {
            get
            {
                return this.ExternalLoadIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ExternalLoadIDField, value))
                {
                    this.ExternalLoadIDField = value;
                    this.RaisePropertyChanged("ExternalLoadID");
                }
            }
        }

        [DataMember]
        public string ExternOrderID
        {
            get
            {
                return this.ExternOrderIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ExternOrderIDField, value))
                {
                    this.ExternOrderIDField = value;
                    this.RaisePropertyChanged("ExternOrderID");
                }
            }
        }

        [DataMember]
        public string IsActive
        {
            get
            {
                return this.IsActiveField;
            }
            set
            {
                if (!object.ReferenceEquals(this.IsActiveField, value))
                {
                    this.IsActiveField = value;
                    this.RaisePropertyChanged("IsActive");
                }
            }
        }

        [DataMember]
        public string LoadID
        {
            get
            {
                return this.LoadIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LoadIDField, value))
                {
                    this.LoadIDField = value;
                    this.RaisePropertyChanged("LoadID");
                }
            }
        }

        [DataMember]
        public string OhType
        {
            get
            {
                return this.OhTypeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OhTypeField, value))
                {
                    this.OhTypeField = value;
                    this.RaisePropertyChanged("OhType");
                }
            }
        }

        [DataMember]
        public string OrderID
        {
            get
            {
                return this.OrderIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OrderIDField, value))
                {
                    this.OrderIDField = value;
                    this.RaisePropertyChanged("OrderID");
                }
            }
        }

        [DataMember]
        public string OrderType
        {
            get
            {
                return this.OrderTypeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OrderTypeField, value))
                {
                    this.OrderTypeField = value;
                    this.RaisePropertyChanged("OrderType");
                }
            }
        }

        [DataMember]
        public string OwnerID
        {
            get
            {
                return this.OwnerIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OwnerIDField, value))
                {
                    this.OwnerIDField = value;
                    this.RaisePropertyChanged("OwnerID");
                }
            }
        }

        [DataMember]
        public string PoID
        {
            get
            {
                return this.PoIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.PoIDField, value))
                {
                    this.PoIDField = value;
                    this.RaisePropertyChanged("PoID");
                }
            }
        }

        [DataMember]
        public string Route
        {
            get
            {
                return this.RouteField;
            }
            set
            {
                if (!object.ReferenceEquals(this.RouteField, value))
                {
                    this.RouteField = value;
                    this.RaisePropertyChanged("Route");
                }
            }
        }

        [DataMember]
        public int RowID
        {
            get
            {
                return this.RowIDField;
            }
            set
            {
                if (!this.RowIDField.Equals(value))
                {
                    this.RowIDField = value;
                    this.RaisePropertyChanged("RowID");
                }
            }
        }

        [DataMember]
        public string Status
        {
            get
            {
                return this.StatusField;
            }
            set
            {
                if (!object.ReferenceEquals(this.StatusField, value))
                {
                    this.StatusField = value;
                    this.RaisePropertyChanged("Status");
                }
            }
        }

        [DataMember]
        public string Stop
        {
            get
            {
                return this.StopField;
            }
            set
            {
                if (!object.ReferenceEquals(this.StopField, value))
                {
                    this.StopField = value;
                    this.RaisePropertyChanged("Stop");
                }
            }
        }

        [DataMember]
        public byte[] Ts
        {
            get
            {
                return this.TsField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TsField, value))
                {
                    this.TsField = value;
                    this.RaisePropertyChanged("Ts");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    this.RaisePropertyChanged("UpdatedBy");
                }
            }
        }

        [DataMember]
        public DateTime UpdatedDate
        {
            get
            {
                return this.UpdatedDateField;
            }
            set
            {
                if (!this.UpdatedDateField.Equals(value))
                {
                    this.UpdatedDateField = value;
                    this.RaisePropertyChanged("UpdatedDate");
                }
            }
        }

        [DataMember]
        public string VehicleCarrier
        {
            get
            {
                return this.VehicleCarrierField;
            }
            set
            {
                if (!object.ReferenceEquals(this.VehicleCarrierField, value))
                {
                    this.VehicleCarrierField = value;
                    this.RaisePropertyChanged("VehicleCarrier");
                }
            }
        }

        [DataMember]
        public string WhID
        {
            get
            {
                return this.WhIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WhIDField, value))
                {
                    this.WhIDField = value;
                    this.RaisePropertyChanged("WhID");
                }
            }
        }

        [DataMember]
        public List<XorderDetailInfo> XOrderDetailInfos
        {
            get
            {
                return this.XOrderDetailInfosField;
            }
            set
            {
                if (!object.ReferenceEquals(this.XOrderDetailInfosField, value))
                {
                    this.XOrderDetailInfosField = value;
                    this.RaisePropertyChanged("XOrderDetailInfos");
                }
            }
        }

        [DataMember]
        public List<XpickDetailInfo> XpickDetailInfos
        {
            get
            {
                return this.XpickDetailInfosField;
            }
            set
            {
                if (!object.ReferenceEquals(this.XpickDetailInfosField, value))
                {
                    this.XpickDetailInfosField = value;
                    this.RaisePropertyChanged("XpickDetailInfos");
                }
            }
        }
    }
}

